package _spring_test;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Author: huangya
 * @Date: 2019/10/14
 * @Description:
 */
@Configuration
@Component
public class Inventor {

    private String name;

    private Integer age;

    private Date createTime;

    @Value("#{systemProperties['user.country']}")
    private String nationality;

    public Inventor() {
    }

    public Inventor(String name, Integer age, Date createTime, String nationality) {
        this.name = name;
        this.age = age;
        this.createTime = createTime;
        this.nationality = nationality;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }
}
